<template>
  <!--
 v-bind
     v-bind="{a:1,b:1}"====>  :a="1" :b="2"
 v-on
     v-on="{fn(){},fn2(){}}"  @fn=fn的方法  @fn2=fn2的方法
 -->

  <!-- <div @click="$listeners.click()"> -->
  <div v-on="$listeners">
    {{ $attrs }}
    <!-- <img :src="$attrs.src" alt=""> -->
    <img v-bind="$attrs" alt="">
  </div>
</template>
<script>
export default {
  props: [],
  methods: {
    btnClick() {
      console.log(this.$listeners)
    }
  }
}
</script>
<style></style>
